Before enabling libcurl in znc-push, some notifications were not
delivered, especially messages that were sent in burst.
Working example:
```
<*push> Building notification to
api.telegram.org/botXXX/sendMessage...
<*push> Request sending
<*push> Status: 200
<*push> Message: OK
...
```
Broken example:
```
<*push> Building notification to
api.telegram.org/botXXX/sendMessage...
<*push> Request sending
...
<Notification not delivered>
```
Ref: https://github.com/amyreese/znc-push/blob/master/README.md#advanced
```
Note: You are strongly encouraged to use libcurl transport. The reason
for that is, that the default CSocket transport doesn't verify server's
SSL certificate which leaves you vulnerable to MITM attacks. However,
use of libcurl will block the main ZNC thread at every push
notification; for installations with many users, libcurl is not yet
ideal, even with the above security concerns in mind.
```
I subsequently enabled libcurl in push.cpp compilation.
I could not modify the Makefile because it is overwritten for every
module downloaded, but I could override the cpp file before building the
module.
After using libcurl, I could receive all the notifications sent by
znc-push.
Description:
Before enabling libcurl in znc-push, some notifications were not delivered, especially messages that were sent in burst.
Working example:
Broken example:
Ref: https://github.com/amyreese/znc-push/blob/master/README.md#advanced
I subsequently enabled libcurl in push.cpp compilation.
I could not modify the Makefile because it is overwritten for every module downloaded, but I could override the cpp file before building the module.
After using libcurl, I could receive all the notifications sent by znc-push.
Benefits of this PR and context:
Make znc-push use libcurl for reliable notifications
How Has This Been Tested?
Rebuilt the docker-znc image and tested it is working: znc-push is using libcurl (
/msg *push set debug on)Source / References:
https://github.com/amyreese/znc-push/blob/master/README.md#advanced